/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.jul.giftmanager.ui;

import javax.swing.JComponent;
import javax.swing.JFrame;

/**
 *
 * @author user
 */
public class BasicFrame extends JFrame
{

    public BasicFrame()
    {
        init();
    }
    
    private void init(){
        setDefaultCloseOperation(EXIT_ON_CLOSE);
    }
    
    public void setContent(JComponent content){
        getContentPane().add(content);
        pack();
    }
    
    public void showFrame(){
        setVisible(true);
    }
    
    public void hideFrame(){
        setVisible(false);
    }
}
